//商户报备提交校验
function perform3107_freemypay() {
	//提现类型单选
	/*var withdrawType=$('input[name="withdrawType"]:checked').val();
	if(withdrawType==null||withdrawType==""){
		alert("请选择提现类型");
		return;
	}*/
	var withdrawType = "";
	var withdraws = document.getElementsByName("withdraw");
	for(var i = 0; i < withdraws.length; i++){
		/*if (withdraws[i].checked) { // 判断复选框是否选中
			//withdrawType = withdrawType + withdraws[i].value+","; // 值的拼凑 .. 具体处理看你的需要,
			
		}*/
		if (withdraws[i].checked) { // 判断复选框是否选中
			withdrawType = withdrawType + withdraws[i].value+","; // 值的拼凑 .. 具体处理看你的需要,
			if(withdraws[i].value=="D0"){
				if($("#rateD0").val()==""){
					alert("请输入D0费率(%)");
					return;
			}
				if($("#rateD0").val()<"0.02"){
					alert("D0费率不能低于0.02%");
					return;
				}
				
		}
		if(withdraws[i].value=="D1"){
			if($("#rateD1").val()==""){
				alert("请输入D1费率(%)");
				return;
			}
	    }
	}
	}
	var newwithdrawType = withdrawType.substring(0,withdrawType.length-1);
	document.getElementById("withdrawType").value = newwithdrawType;
	
	document.Form3101.submit();
	document.Form3101.merAdd.disable = true;
}
